<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <title>邀请好友</title>
    <link rel="stylesheet" type="text/css" href="./static/css/app.css">
</head>
<body class="F6">
<div id="app" class="invite-page">
    <!-- header -->
    <div class="header">
        <div class="header-height"></div>
        <div class="header-wrap">
            <div class="header-content">
                <div class="left">
                    <div class="go-back"><img src="./static/images/go-back.png" alt=""></div>
                    <div class="text">邀请好友</div>
                </div>
                <div class="title"></div>
            </div>
        </div>
    </div>
    <!-- 顶部 -->
    <div class="top-wrap">
        <div class="invite-bg1">
            <img src="./static/images/invite-bg1.png" alt="">
        </div>
        <div class="sph">
            <img src="./static/images/sph.png" alt="">
        </div>
        <div class="text">100天挑战在视频号轻松赚到100万</div>
    </div>
    <!-- 中间 -->
    <div class="middle-wrap">
        <div class="invite-bg2">
            <img src="./static/images/invite-bg2.png" alt="">
        </div>
        <div class="content">
            <div class="top-box">
                <!-- 轮播 -->
                <div class="carousel-container" id="carousel1">
                    <div class="carousel-wrapper">
                        <a href="#" class="carousel-item">
                            <img src="./static/images/invite-img.png" alt="">
                        </a>
                        <a href="#" class="carousel-item">
                            <img src="./static/images/invite-img.png" alt="">
                        </a>
                        <a href="#" class="carousel-item">
                            <img src="./static/images/invite-img.png" alt="">
                        </a>
                    </div>
                    <div class="carousel-dots"></div>
                </div>
                <a href="javascript:toLeft();" class="to-left"><img src="./static/images/to-left.png" alt=""></a>
                <a href="javascript:toRight();" class="to-right"><img src="./static/images/to-right.png" alt=""></a>
            </div>
            <div class="bottom-box">
                <div class="left">
                    <img src="./static/images/qrcode.png" alt="">
                </div>
                <div class="right">
                    <div class="user-box">
                        <div class="avatar">
                            <img src="./static/images/avatar.png" alt="">
                        </div>
                        <div class="nickname-box">
                            <div class="nickname ellipsis-1">薛定谔的猫</div>
                            <div class="tag-name">一级达人</div>
                        </div>
                    </div>
                    <div class="share-code">分享码：88888888</div>
                    <div class="tips">邀请您加入视频号带货达人矩阵</div>
                </div>
            </div>
        </div>
    </div>
    <div class="click-tips">点击替换<span class="blue">上传</span>自己的推广图片</div>
    <!-- 底部按钮 -->
    <div class="btn-list">
        <div class="left-btn" onclick="showSharePopup()">分享邀请链接</div>
        <div class="right-btn">保存为图片</div>
    </div>
    <!-- 预测弹窗 -->
    <div class="popup" onclick="hidePopup()"></div>
    <div class="popup-content">
         <div class="title">分享当前海报到</div>
         <div class="middle">
            <div class="left">
                <div class="img"><img src="./static/images/wx.png" alt=""></div>
                <div class="text">微信好友</div>
            </div>
            <div class="right">
                <div class="img"><img src="./static/images/pyq.png" alt=""></div>
                <div class="text">朋友圈</div>
            </div>
         </div>
         <div class="cancel-btn" onclick="hidePopup()">取消</div>
    </div>
</div>
<script src="./static/js/common.js"></script>
<script>
    const carousel = new Carousel('carousel1', 86400);
    function toLeft() {
        carousel.showPreviousSlide()
    }
    function toRight() {
        carousel.showNextSlide()
    }
    function showSharePopup() {
        document.querySelector('.popup').style.display = 'block'
        document.querySelector('.popup-content').style.display = 'block'
        document.querySelector('body').style.overflow = 'hidden'
    }
    function hidePopup() {
        document.querySelector('.popup').style.display = 'none'
        document.querySelector('.popup-content').style.display = 'none'
        document.querySelector('body').style.overflow = 'visible';
    }
</script>
</body>
</html>